import * as Pinia from 'pinia';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';

const pinia = Pinia.createPinia();

pinia.use(piniaPluginPersistedstate);

/**
 * @typedef {import('vue').App} App
 *
 * @param app {App<Element>}
 */
export function setupPinia(app) {
  app.use(pinia);
}
export default Pinia;
